n=int(input())

sum=0

for i in range(n):
    sum+=1/(1+i*2)
print("sum={:.6f}".format(sum))